<?php use_helper('Date') ?>
<?php use_helper('LetsManager') ?>

<h2>Détail de l'échange <?php echo $echange->getId() ?></h2>
<table class="formtable">
<tr><th>Numéro :</th><td><?php echo $echange->getId() ?></td></tr>
<tr><th>Création :</th><td>le <?php echo format_date($echange->getCreatedAt()) ?> par 
		<?php echo lets_format_member($echange->getCreatedByUser()) ?></td></tr>
<tr><th>Date de l'échange :</th><td>le <?php echo format_date($echange->getDateExchange()) ?></td></tr>
<tr><th>Créditeur :</th><td><?php echo lets_format_member($echange->getCreditorUser()) ?></td></tr>
<tr><th>Débiteur :</th><td><?php echo lets_format_member($echange->getDebitorUser()) ?></td></tr>
<tr><th>Catégorie :</th><td><?php echo $echange->getCategory() ?></td></tr>
<tr><th>Description :</th><td><?php echo $echange->getName() ?></td></tr>
<tr><th>Montant :</th><td><?php echo $echange->getAmount().' '.lets_money_name() ?></td></tr>
<tr><th>Etat :</th><td><?php echo $echange->getStateValidationString() ?></td></tr>
</table>
<br/>
<?php /*if($echange->canEdit()){
 echo link_to("Editer",  '@lets_exchangeByManager_edit?id=' . $echange->getId(), array('class'=>"blue button")) ;
}*/ ?>
